home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.4 KB | 107 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _LINKSRCB_
- #define _LINKSRCB_
-
- #ifndef _PSTOBJ_
- #include "PstObj.idl"
- #endif
-
- //==============================================================================
- // Theory of Operation
- //==============================================================================
-
- /*
- This class is used to represent the source side of OpenDoc links. ODDrafts
- create and own these links. The source ODPart will ask the draft to create
- an ODLinkSource and an ODLink pair, and return the ODLink object to the
- the destination part. The destination part uses the ODLink object to
- extract the contents of the link.
- */
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODBaseLinkSource;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODStorageUnit;
- interface ODPart;
- interface ODPartList;
- interface ODLink;
- interface ODDraft;
-
- //==============================================================================
- // ODLinkSource
- //==============================================================================
-
- interface ODBaseLinkSource : ODPersistentObject
- {
- ODBoolean Lock(in ODULong wait,
- in ODLinkKey key);
-
- void Unlock(in ODLinkKey key);
-
- ODStorageUnit GetContentStorageUnit(in ODLinkKey key);
-
- void ContentChanged(in ODChangeID id);
-
- void Clear(in ODChangeID id,
- in ODLinkKey key);
-
- ODChangeID GetChangeID();
-
- void SetAutoUpdate(in ODBoolean automatic);
-
- ODBoolean IsAutoUpdate();
-
- ODLink GetLink();
-
- void SetSourcePart(in ODStorageUnit sourcePartSU);
-
- void ShowSourceContent();
-
- ODTime GetChangeTime();
-
- ODStorageUnit CloneTo(in ODDraftKey draftKey,
- in ODDraft destDraft,
- in ODStorageUnit newSourcePartSU);
-
-
- #ifdef __SOMIDL__
-
- implementation
- {
- override:
- somInit,
- somUninit;
-
- releaseorder:
- Lock,
- Unlock,
- GetContentStorageUnit,
- ContentChanged,
- Clear,
- GetChangeID,
- SetAutoUpdate,
- IsAutoUpdate,
- GetLink,
- SetSourcePart,
- ShowSourceContent,
- GetChangeTime,
- CloneTo,
- reserved1,
- reserved2;
-
- majorversion = 1; minorversion = 0;
-
-
- };
- #endif //# __SOMIDL__
- };
-
- #endif //# _LINKSRCB_
-